import 'package:flutter/material.dart';

import '../../foundation/decoration/public_box_shadow.dart';

/// FileName circle_container
///
/// @Author lax
/// @Date 2023/5/22
///
/// @Description

class CircleContainer extends Container {
  CircleContainer({
    super.key,
    super.margin,
    super.padding,
    super.alignment = Alignment.center,
    super.child,
    double? size,
    Color? color = Colors.white,
    Color? shadowColor,
    Decoration? decoration,
  }) : super(
          width: size,
          height: size,
          decoration: decoration ??
              BoxDecoration(
                color: color,
                boxShadow: shadowColor == null
                    ? null
                    : [PublicBoxShadow(color: shadowColor)],
                shape: BoxShape.circle,
              ),
        );
}
